<template>
  <div class="left">
    <el-row :gutter="12">
      <el-col :span="24">
        <el-card shadow="hover" style="border-radius: 10px">
          <div>
            <ul class="flex">
              <li @click="moveTo(1)"><img src="../assets/projectImg/推荐.png" height="20" width="20"/><a>用户计划</a></li>
              <li @click="moveTo(2)"><img src="../assets/projectImg/最新.png" height="20" width="20"/><a>广告投放</a></li>
<!--              <li @click="moveTo(3)"><img src="../assets/projectImg/个人中心.png" height="20" width="20"/><a>我的家庭相册</a></li>-->
            </ul>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "AdminLeft",
  methods: {
    moveTo(data) {
      if (data == 1) {
        this.$router.push('/admin');
      } else if (data == 2) {
        this.$router.push('/adPic');
      } else if (data == 3) {
        // this.$router.push('/album');
      }
    }
  }
}
</script>

<style scoped>
.left {
  width: 240px;
  float: left;
  position: fixed;
}

.flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

li {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #eaeaea;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 5px;
  cursor: pointer;
}

a {
  cursor: pointer;
  /*width: 100%;*/
  height: 100%;
  display: block;
}
</style>